<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>认识体育运动</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: "Microsoft YaHei", sans-serif;
        }
        
        body {
            background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
            padding: 20px;
            min-height: 100vh;
        }
        
        .container {
            max-width: 1200px;
            margin: 0 auto;
        }
        
        header {
            text-align: center;
            margin-bottom: 40px;
            padding: 20px;
            background-color: rgba(255, 255, 255, 0.8);
            border-radius: 12px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }
        
        h1 {
            color: #2c3e50;
            font-size: 36px;
            margin-bottom: 10px;
            position: relative;
            display: inline-block;
        }
        
        h1::after {
            content: "";
            position: absolute;
            width: 50%;
            height: 4px;
            background-color: #3498db;
            bottom: -10px;
            left: 25%;
            border-radius: 2px;
        }
        
        .subtitle {
            color: #7f8c8d;
            font-size: 18px;
            margin-top: 20px;
        }
        
        .cards-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 30px;
            margin-bottom: 40px;
        }
        
        /* 卡片翻转相关样式 */
        .card {
            background-color: transparent;
            perspective: 1000px;
            height: 400px;
            cursor: pointer;
        }
        
        .card-inner {
            position: relative;
            width: 100%;
            height: 100%;
            text-align: center;
            transition: transform 0.8s;
            transform-style: preserve-3d;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            border-radius: 12px;
        }
        
        .card.flipped .card-inner {
            transform: rotateY(180deg);
        }
        
        .card-front, .card-back {
            position: absolute;
            width: 100%;
            height: 100%;
            -webkit-backface-visibility: hidden;
            backface-visibility: hidden;
            border-radius: 12px;
            overflow: hidden;
        }
        
        .card-front {
            background-color: white;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
        }
        
        .card-back {
            background-color: white;
            transform: rotateY(180deg);
            padding: 20px;
            display: flex;
            flex-direction: column;
            text-align: left;
            overflow-y: auto;
        }
        
        .card-placeholder {
            font-size: 100px;
            margin-bottom: 20px;
            position: relative;
            z-index: 2;
            transition: transform 0.3s ease;
        }
        
        .card:hover .card-placeholder {
            transform: scale(1.2);
        }
        
        .card-title {
            font-size: 22px;
            font-weight: bold;
            color: #2c3e50;
            margin-top: 10px;
        }
        
        .card-back-title {
            font-size: 24px;
            font-weight: bold;
            color: #2c3e50;
            margin-bottom: 15px;
            padding-bottom: 10px;
            border-bottom: 2px solid #f1f1f1;
            display: flex;
            align-items: center;
        }
        
        .card-back-icon {
            font-size: 30px;
            margin-right: 10px;
        }
        
        .card-content {
            font-size: 16px;
            line-height: 1.6;
            color: #34495e;
            margin-bottom: 20px;
        }
        
        .card-facts {
            background-color: #f9f9f9;
            padding: 15px;
            border-radius: 8px;
            margin-top: auto;
        }
        
        .card-facts h3 {
            font-size: 18px;
            color: #d35400;
            margin-bottom: 10px;
        }
        
        .card-facts ul {
            list-style-type: none;
        }
        
        .card-facts li {
            margin-bottom: 8px;
            padding-left: 20px;
            position: relative;
            font-size: 14px;
        }
        
        .card-facts li::before {
            content: "🔹";
            position: absolute;
            left: 0;
        }
        
        .color-bar {
            height: 5px;
            width: 100%;
            position: absolute;
            top: 0;
            left: 0;
        }
        
        .flip-hint {
            position: absolute;
            bottom: 10px;
            right: 10px;
            background-color: rgba(0, 0, 0, 0.1);
            color: #2c3e50;
            padding: 5px 10px;
            border-radius: 20px;
            font-size: 12px;
            display: flex;
            align-items: center;
        }
        
        .flip-icon {
            margin-left: 5px;
            animation: rotate 2s infinite;
            display: inline-block;
        }
        
        @keyframes rotate {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        
        .instructions {
            background-color: rgba(255, 255, 255, 0.9);
            padding: 15px;
            border-radius: 8px;
            margin-bottom: 30px;
            border-left: 4px solid #2ecc71;
            font-size: 16px;
            color: #34495e;
        }
        
        .confetti {
            position: fixed;
            width: 10px;
            height: 10px;
            background-color: #f00;
            animation: fall 5s linear forwards;
            z-index: 1000;
        }
        
        @keyframes fall {
            0% {
                transform: translateY(-100px) rotate(0deg);
                opacity: 1;
            }
            100% {
                transform: translateY(calc(100vh + 100px)) rotate(360deg);
                opacity: 0;
            }
        }
        
        footer {
            text-align: center;
            margin-top: 40px;
            padding: 20px;
            color: #7f8c8d;
            font-size: 14px;
            background-color: rgba(255, 255, 255, 0.8);
            border-radius: 12px;
        }
        
        .card-image {
            width: 160px;
            height: 160px;
            object-fit: cover;
            border-radius: 50%;
            margin-bottom: 20px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            transition: transform 0.3s ease;
        }
        
        .card:hover .card-image {
            transform: scale(1.1);
        }
    </style>
</head>
<body>
    <div class="container">
        <header>
            <h1>认识体育运动</h1>
            <p class="subtitle">点击卡片翻转，了解更多关于这项运动的信息</p>
        </header>
        
        <div class="instructions">
            <p>👋 小朋友们好！点击下面的运动卡片，卡片会翻转并显示这项运动的详细介绍和有趣知识！</p>
        </div>
        
        <div class="cards-container">
            <!-- 足球 -->
            <div class="card" id="soccer-card" onclick="flipCard('soccer-card')">
                <div class="card-inner">
                    <div class="card-front">
                        <img src="https://pic.nximg.cn/file/20221124/20245407_101145306105_2.jpg" alt="足球" class="card-image">
                        <div class="card-title">足球</div>
                        <div class="flip-hint">点击翻转 <span class="flip-icon">🔄</span></div>
                    </div>
                    <div class="card-back">
                        <div class="color-bar" style="background-color: #3498db;"></div>
                        <div class="card-back-title">
                            <span class="card-back-icon">⚽</span>足球
                        </div>
                        <p class="card-content">足球是世界上最受欢迎的运动之一。比赛由两支队伍进行，每队11名球员，在长方形草地上进行。球员们需要用脚、头或身体（手和手臂除外）将球射入对方球门。足球不仅锻炼身体协调性和耐力，还培养团队合作精神。</p>
                        <div class="card-facts">
                            <h3>有趣小知识</h3>
                            <ul>
                                <li>足球起源于中国古代的蹴鞠，距今已有2300多年历史</li>
                                <li>世界杯是足球界最重要的比赛，每四年举办一次</li>
                                <li>一场足球比赛通常有90分钟，分为两个45分钟的半场</li>
                                <li>巴西是获得世界杯冠军次数最多的国家，共5次</li>
                            </ul>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- 篮球 -->
            <div class="card" id="basketball-card" onclick="flipCard('basketball-card')">
                <div class="card-inner">
                    <div class="card-front">
                        <img src="https://img95.699pic.com/photo/50149/7630.jpg_wh860.jpg" alt="篮球" class="card-image">
                        <div class="card-title">篮球</div>
                        <div class="flip-hint">点击翻转 <span class="flip-icon">🔄</span></div>
                    </div>
                    <div class="card-back">
                        <div class="color-bar" style="background-color: #e74c3c;"></div>
                        <div class="card-back-title">
                            <span class="card-back-icon">🏀</span>篮球
                        </div>
                        <p class="card-content">篮球是一项室内运动，由两队各5名球员在球场上进行。球员们需要运球、传球并将球投入高悬的篮筐得分。篮球运动能提高弹跳力、协调性和团队合作能力，是非常受欢迎的一项运动。</p>
                        <div class="card-facts">
                            <h3>有趣小知识</h3>
                            <ul>
                                <li>篮球是由美国人詹姆斯·奈史密斯于1891年发明的</li>
                                <li>NBA是世界上最著名的篮球联赛，有30支球队</li>
                                <li>篮球原本使用的是足球，后来才发展出专门的篮球</li>
                                <li>标准篮筐的高度是3.05米(10英尺)</li>
                            </ul>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- 羽毛球 -->
            <div class="card" id="badminton-card" onclick="flipCard('badminton-card')">
                <div class="card-inner">
                    <div class="card-front">
                        <img src="https://ts1.tc.mm.bing.net/th/id/R-C.702ac1a1787192c3516359d571a65df5?rik=r4XTEm072SN%2f%2fQ&riu=http%3a%2f%2fimg2.aiyuke.com%2fupload%2f2022%2f12%2f28%2f22122814011499008.jpg&ehk=04U7z6316e6tznpjfAm8xEYlRHAt4g%2b6HDoyUizNkgo%3d&risl=&pid=ImgRaw&r=0" alt="羽毛球" class="card-image">
                        <div class="card-title">羽毛球</div>
                        <div class="flip-hint">点击翻转 <span class="flip-icon">🔄</span></div>
                    </div>
                    <div class="card-back">
                        <div class="color-bar" style="background-color: #27ae60;"></div>
                        <div class="card-back-title">
                            <span class="card-back-icon">🏸</span>羽毛球
                        </div>
                        <p class="card-content">羽毛球是用拍击打一种装有羽毛的球，使球飞过球网落入对方场区。羽毛球可以单人对战也可以双人对战。这项运动能锻炼反应速度、灵活性和手眼协调能力，是许多小朋友喜欢的休闲运动。</p>
                        <div class="card-facts">
                            <h3>有趣小知识</h3>
                            <ul>
                                <li>羽毛球是奥运会速度最快的球类运动</li>
                                <li>专业羽毛球的羽毛来自鹅的左翅膀</li>
                                <li>羽毛球最高时速可达到400公里/小时</li>
                                <li>中国是羽毛球强国之一，获得过很多奥运金牌</li>
                            </ul>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- 网球 -->
            <div class="card" id="tennis-card" onclick="flipCard('tennis-card')">
                <div class="card-inner">
                    <div class="card-front">
                        <img src="https://img95.699pic.com/photo/50500/9949.jpg_wh860.jpg" alt="网球" class="card-image">
                        <div class="card-title">网球</div>
                        <div class="flip-hint">点击翻转 <span class="flip-icon">🔄</span></div>
                    </div>
                    <div class="card-back">
                        <div class="color-bar" style="background-color: #f39c12;"></div>
                        <div class="card-back-title">
                            <span class="card-back-icon">🎾</span>网球
                        </div>
                        <p class="card-content">网球是使用网球拍击打一个充满空气的橡胶球，使球越过球网落入对方场区。网球比赛可以是单打或双打。这项运动不仅能锻炼全身肌肉，还能提高耐力、反应能力和专注力。</p>
                        <div class="card-facts">
                            <h3>有趣小知识</h3>
                            <ul>
                                <li>网球起源于12世纪的法国</li>
                                <li>温布尔登锦标赛是最古老的网球赛事，始于1877年</li>
                                <li>网球比赛中，球员可能要跑动几公里的距离</li>
                                <li>网球最初是用手掌击球，后来才发明了球拍</li>
                            </ul>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- 乒乓球 -->
            <div class="card" id="pingpong-card" onclick="flipCard('pingpong-card')">
                <div class="card-inner">
                    <div class="card-front">
                        <img src="https://wenhui.whb.cn/u/cms/www/202108/0415250491m5.jpg" alt="乒乓球" class="card-image">
                        <div class="card-title">乒乓球</div>
                        <div class="flip-hint">点击翻转 <span class="flip-icon">🔄</span></div>
                    </div>
                    <div class="card-back">
                        <div class="color-bar" style="background-color: #9b59b6;"></div>
                        <div class="card-back-title">
                            <span class="card-back-icon">🏓</span>乒乓球
                        </div>
                        <p class="card-content">乒乓球又称桌球，使用木制球拍击打一个轻质的小球，使球越过网落到对方台面上。乒乓球是我国的国球，讲究快速反应和精准控制，能提高手眼协调能力和反应速度。</p>
                        <div class="card-facts">
                            <h3>有趣小知识</h3>
                            <ul>
                                <li>乒乓球起源于19世纪末的英国</li>
                                <li>中国在乒乓球项目上长期保持世界领先地位</li>
                                <li>乒乓球比赛一般是11分制</li>
                                <li>标准乒乓球台的尺寸是2.74米长、1.525米宽、0.76米高</li>
                            </ul>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- 滑冰 -->
            <div class="card" id="skating-card" onclick="flipCard('skating-card')">
                <div class="card-inner">
                    <div class="card-front">
                        <img src="https://ts1.tc.mm.bing.net/th/id/R-C.3a40369525fb03f1ec95c8c39ecea803?rik=GZ557Abe0jOFlQ&riu=http%3a%2f%2fn.sinaimg.cn%2fsinakd20210321ac%2f408%2fw1728h1080%2f20210321%2fedc5-kmrcukz5913036.jpg&ehk=S82mXPU13e2O4Ce6ft2DTyTkTZZMAYcbokp%2f9J1GqL0%3d&risl=&pid=ImgRaw&r=0" alt="滑冰" class="card-image">
                        <div class="card-title">滑冰</div>
                        <div class="flip-hint">点击翻转 <span class="flip-icon">🔄</span></div>
                    </div>
                    <div class="card-back">
                        <div class="color-bar" style="background-color: #1abc9c;"></div>
                        <div class="card-back-title">
                            <span class="card-back-icon">⛸️</span>滑冰
                        </div>
                        <p class="card-content">滑冰是在冰面上使用特制冰鞋进行滑行的运动。包括花样滑冰、速度滑冰等多种形式。滑冰需要良好的平衡感和协调性，能锻炼腿部力量和核心稳定性，是冬季非常受欢迎的运动。</p>
                        <div class="card-facts">
                            <h3>有趣小知识</h3>
                            <ul>
                                <li>最早的滑冰是用动物骨头制成的</li>
                                <li>花样滑冰是冬奥会中最受欢迎的项目之一</li>
                                <li>速度滑冰运动员时速可达60公里</li>
                                <li>荷兰是世界上最早开始滑冰的国家之一</li>
                            </ul>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        
        <!-- <footer>
            <p>© 2023 儿童体育认知卡片 | 设计用于小学生体育教育</p>
        </footer> -->
    </div>
    
    <script>
        function createConfetti() {
            const colors = ["#f44336", "#e91e63", "#9c27b0", "#673ab7", "#3f51b5", "#2196f3", "#03a9f4", "#00bcd4", "#009688", "#4CAF50", "#8BC34A", "#CDDC39", "#FFEB3B", "#FFC107", "#FF9800", "#FF5722"];
            
            for (let i = 0; i < 30; i++) {
                const confetti = document.createElement("div");
                confetti.classList.add("confetti");
                confetti.style.left = Math.random() * 100 + "vw";
                confetti.style.backgroundColor = colors[Math.floor(Math.random() * colors.length)];
                confetti.style.width = Math.random() * 10 + 5 + "px";
                confetti.style.height = Math.random() * 10 + 5 + "px";
                confetti.style.animationDelay = Math.random() * 3 + "s";
                
                document.body.appendChild(confetti);
                
                setTimeout(() => {
                    confetti.remove();
                }, 5000);
            }
        }
        
        function flipCard(cardId) {
            const card = document.getElementById(cardId);
            card.classList.toggle('flipped');
            
            // 只在翻转到背面时创建彩色纸屑
            if (card.classList.contains('flipped')) {
                createConfetti();
            }
        }
    </script>
</body>
</html> 